<template>
	<view class="card">
		<!-- <view class="one" :style="'width:' + width" v-for="(it, i) in arr" :key="i">
			<view class="o-img"><image :src="it.img + ++i + '.png'"></image></view>
			<view class="text" :style="'color:' + textColor">{{ it.txt }}</view>
		</view> -->
	</view>
</template>

<script>
export default {
	name: 'card',
	props: {
		arr: {
			type: Array
		},
		textColor: {
			type: String,
			default: '#000'
		},
		width: {
			type: String,
			default: '20%'
		}
	},
	data() {
		return {};
	}
};
</script>

<style lang="less">
.card {
	width: 750rpx;
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
	.one {
		width: 20%;
		height: 150rpx;
		margin-top: 20rpx;
		display: flex;
		align-items: center;
		flex-direction: column;
		.o-img {
			width: 70rpx;
			height: 70rpx;
			image {
				width: 100%;
				height: 100%;
			}
		}
		.text {
			margin-top: 8rpx;
			text-align: center;
			font-size: 26rpx;
		}
	}
}
</style>
